<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
	<h:panelGroup rendered="#{empty rendered ? not empty stream : rendered}">
		<h:commandLink value="#{empty filename ? resourcesUtil.getProperty('download') : filename}"><p:fileDownload value="#{stream}" /></h:commandLink>
	</h:panelGroup>
</ui:composition>